var expect = chai.expect;

describe('Number2ChipRes', function() 
{
	it('getChipValue', function()
	{
		// include.members 包含这些元素
		// have.lengthOf 长度判断
		expect(game.Number2ChipRes.getChipValue(20)).to.include.members([20]);
		expect(game.Number2ChipRes.getChipValue(20)).to.have.lengthOf(1);

		expect(game.Number2ChipRes.getChipValue(30)).to.include.members([20,10]);
		expect(game.Number2ChipRes.getChipValue(30)).to.have.lengthOf(2);

		expect(game.Number2ChipRes.getChipValue(11111)).to.include.members([10000,1000,100,10,1]);
		expect(game.Number2ChipRes.getChipValue(11111)).to.have.lengthOf(5);

		expect(game.Number2ChipRes.getChipValue(11116)).to.include.members([10000,1000,100,10,5]);
		expect(game.Number2ChipRes.getChipValue(11116)).to.have.lengthOf(5);

		expect(game.Number2ChipRes.getChipValue("30")).to.include.members([20,10]);
		expect(game.Number2ChipRes.getChipValue("30")).to.have.lengthOf(2);

		expect(game.Number2ChipRes.getChipValue("11116")).to.include.members([10000,1000,100,10,5]);
		expect(game.Number2ChipRes.getChipValue("11116")).to.have.lengthOf(5);

		expect(game.Number2ChipRes.getChipValue("")).to.have.lengthOf(0);
		expect(game.Number2ChipRes.getChipValue({})).to.have.lengthOf(0);
	});
});
